﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.chatroom.index" %>

<%@ Reference Page="~/general/index.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>聊天室</title>
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<script language="JavaScript">
<!-- 
if (document.all){
document.write('<div id="C" style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
document.write('<img  id="pic" src="/images/avatar/9.gif" style="position:absolute;top:0px;left:0px">');
document.write('</div></div>');
}
S=null,fadeStep=4,fade=80,currentStep=0,step=2,RY=0,RX=0,Yarea=0,Xarea=0;
function Expand(){
if (document.all){
pic.width=currentStep*2;
pic.height=currentStep*2;
pic.style.top= -currentStep;
pic.style.left= -currentStep;
pic.style.filter='alpha(opacity='+fade+')';
currentStep+=step;
if (currentStep > 20) fade-=fadeStep;
if (fade < -50) 
{
currentStep=0;
fade=80;
Yarea=window.document.body.clientHeight-80;
Xarea=window.document.body.clientWidth-80;
RY=Math.round(50+Math.random()*Yarea);
RX=Math.round(50+Math.random()*Xarea);
C.style.top=RY+document.body.scrollTop;
C.style.left=RX+document.body.scrollLeft;
}
S=setTimeout('Expand()',40);
}
}
if (document.all)window.onload=Expand; 

if (document.layers)
 {
 alert("Your Browser is not capable of displaying this effect.\nPick another.");
 opener.gO();window.close();
 }
// -->
		</script>
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/chatroom.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
							聊天室</span><br>
					</td>
				</tr>
			</table>
			<br>
			<asp:Repeater id="rptChatroom" runat="server">
			<HeaderTemplate>
			<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center">
    <tr class="TableHeader">
      <td nowrap align="center">聊天室列表</td>
    </tr>
    </HeaderTemplate>
   
    <ItemTemplate>
      <tr class="TableLine1">
      <td align="center"><a href="login.aspx?session_id=<%#Eval("SessionId")%>"><%#Eval("SessionName")%></a>
      （<%#Eval("OnlineNums")%> 人）</td>
    </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
     <tr class="TableLine2">
      <td align="center"><a href="login.aspx?session_id=<%#Eval("SessionId")%>"><%#Eval("SessionName")%></a>
      （<%#Eval("OnlineNums")%> 人）</td>
    </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
     </table>
    </FooterTemplate>
			</asp:Repeater>
		</form>
		<asp:Literal id="litMessage" runat="server"></asp:Literal>
	</body>
</HTML>
